//获取系统当前日期的一个函数  yyyy-mm-dd
function getCurrentDate(){
	//获取系统当前日期
	var currentDate = new Date();
	var year = currentDate.getFullYear();
	var month = currentDate.getMonth()+1;
	var date = currentDate.getDate();

	if((month+"").length==1){
		month = "0"+month;
	}

	if((date+"").length==1){
		date = "0"+date;
	}

	var currentDate = year+"-"+month+"-"+date;

	return currentDate;

}
